import { postRequest } from '@utils/request/index'
import { TaskDataDTO } from './types'

export function queryTaskListApi(data: Partial<TaskDataDTO>) {
  return postRequest('/api/task/list', data)
}

export function createTaskApi(data: Partial<TaskDataDTO>) {
  return postRequest('/api/task/create', data)
}

export function exportTaskApi(data: Pick<TaskDataDTO, 'id'>) {
  return postRequest('/api/task/')
}
